﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrByCategory.ascx.cs" Inherits="Controls_News_ctrByCategory" %>
<%@ Register Assembly="Paging" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Label ID="lblNews" runat="server" Text="Label"></asp:Label>
<br />
<asp:Repeater ID="rptByCategory" runat="server" onitemcommand="rptByCategory_ItemCommand" onitemdatabound="rptByCategory_ItemDataBound">
    <ItemTemplate>
        <div style ="width:100%; float:left  ">
            <div style ="float:left "> <asp:ImageButton ID="btnImage" runat="server" CommandName="newsimage" Width="120" Height="80"/></div>
            <div style ="float:left ">
                 <asp:HyperLink ID="lnkTitle" runat="server" ></asp:HyperLink>
                <br />
                <asp:Label ID="lnkInitData" runat="server"></asp:Label>
            </div>
        </div>
 
        
        <asp:Repeater ID="rptCategoryChild" runat="server" onitemcommand="rptCategoryChild_ItemCommand" onitemdatabound="rptCategoryChild_ItemDataBound">
            <ItemTemplate>
             
            <div style ="width:100%; float:left  ">
            <div style ="float:left "> <asp:ImageButton ID="btnImageChild" runat="server" CommandName="newsimage" Width="120" Height="80"/></div>
            <div style ="float:left" >
                <asp:HyperLink ID="lnkTitleChild" runat="server" ></asp:HyperLink>
                <br />
                <asp:Label ID="lnkInitDataChild" runat="server"></asp:Label>
            </div>
        </div>
            </ItemTemplate>
        </asp:Repeater>
      
        <br />
        <asp:Repeater ID="rptRelatedNews" runat="server" onitemcommand="rptRelatedNews_ItemCommand" onitemdatabound="rptRelatedNews_ItemDataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lbtRelated" runat="server" CommandName="newsrelated"></asp:LinkButton>
                <br />
            </ItemTemplate>
        </asp:Repeater>
        
    </ItemTemplate>
</asp:Repeater>
 <cc1:pager id="Pager1" OnCommand="pager_Command"  runat="server"></cc1:pager>